package com.example.service.impl;

import com.example.service.meetingRoomService;
import com.example.mapper.meetingRoomMapp;
import com.example.pojo.meetingRoomPojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class meetingRoomImpl implements meetingRoomService {

    @Autowired
    private meetingRoomMapp meetingRoomMapp;

    @Override
    public List<meetingRoomPojo> queryAll() {
        return meetingRoomMapp.queryAll();
    }

    @Override
    public void insertOne(meetingRoomPojo meetingRoomPojo) {
        meetingRoomMapp.insertOne(meetingRoomPojo);
    }

    @Override
    public void updateMeetingRoom(meetingRoomPojo meetingRoomPojo) {
        meetingRoomMapp.updateMeetingRoom(meetingRoomPojo);
    }

    @Override  // 添加@Override注解
    public void deleteMeetingRoom(String id) {
        meetingRoomMapp.deleteMeetingRoom(id);  // 调用mapper的删除方法
    }
}



